import {request} from './core.js';
import {METHOD,PATH} from './config.js';

const netClient = {
	//获取商品列表
	getStoreList(params){
		return request(METHOD.GET,PATH.getStoreList,params)
	},
	login(params){
		return request(METHOD.POST,PATH.login,params)
	},
	bargain(params){
		return request(METHOD.GET,PATH.bargain,params)
	},
	list(params){
		return request(METHOD.GET,PATH.list,params)
	},
	details(params){
		return request(METHOD.GET,PATH.details,params)
	},
	classify(params){
		return request(METHOD.GET,PATH.classify,params)
	}
}

export default netClient;